package com.example.wanandroid.pojo;

import java.io.Serializable;

public class User implements Serializable {
    private Long id;

    /**
     * 是否管理员
     *
     * @mbggenerated Tue Apr 14 21:18:44 CST 2020
     */
    private Boolean admin;

    /**
     * 邮箱
     *
     * @mbggenerated Tue Apr 14 21:18:44 CST 2020
     */
    private String email;

    /**
     * 头像
     *
     * @mbggenerated Tue Apr 14 21:18:44 CST 2020
     */
    private String icon;

    /**
     * 昵称
     *
     * @mbggenerated Tue Apr 14 21:18:44 CST 2020
     */
    private String nickname;

    /**
     * 密码
     *
     * @mbggenerated Tue Apr 14 21:18:44 CST 2020
     */
    private String password;

    private String publicName;

    private String token;

    private Integer type;

    /**
     * 账号
     *
     * @mbggenerated Tue Apr 14 21:18:44 CST 2020
     */
    private String username;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Boolean getAdmin() {
        return admin;
    }

    public void setAdmin(Boolean admin) {
        this.admin = admin;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon == null ? null : icon.trim();
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getPublicName() {
        return publicName;
    }

    public void setPublicName(String publicName) {
        this.publicName = publicName == null ? null : publicName.trim();
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token == null ? null : token.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }
}